package com.sise.aio和bio和nio.nio.基于nio的一个通信案例;

/**
 * @author idea
 * @data 2019/1/20
 */
public class Test {
    public static void main(String[] args) throws InterruptedException {
        Thread server = new Thread(new NioServer());
//        Thread client = new Thread(new NioClient());
//        Thread client2 = new Thread(new NioClient());
//        Thread client3 = new Thread(new NioClient());
//        Thread client4 = new Thread(new NioClient());

        System.out.println("服务器开启");
        server.start();
//        Thread.sleep(100);
//        System.out.println("client2");
//        client.start();
//        client2.start();
//        client3.start();
//        client4.start();

    }
}
